<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Easy Attendance</title>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<%-- <%@include file="includeFiles.jsp" %> --%>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<link
		href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,700|Open+Sans+Condensed:300,700"
		rel="stylesheet" />
	<script src="<%=request.getContextPath()%>/public/js/jquery.min.js"></script>
	<script src="<%=request.getContextPath()%>/public/js/skel.min.js"></script>
	<script src="<%=request.getContextPath()%>/public/js/skel-panels.min.js"></script>
	<script src="<%=request.getContextPath()%>/public/js/init_login.js"></script>
	<script src="<%=request.getContextPath()%>/public/js/validate.js"></script>
			
	<link rel="stylesheet" href="<%=request.getContextPath()%>/views/css/skel-noscript.css" />
	<link rel="stylesheet" href="<%=request.getContextPath()%>/views/css/style.css" />
	<link rel="stylesheet" href="<%=request.getContextPath()%>/views/css/style-desktop.css" />
	<link rel="stylesheet" href="<%=request.getContextPath()%>/views/css/style-wide.css" />
	
	<!--[if lte IE 9]><link rel="stylesheet" href="css/ie9.css" /><![endif]-->
	<!--[if lte IE 8]><script type="text/javascript" src="<%=request.getContextPath()%>/public/js/html5shiv.js"></script><link rel="stylesheet" href="css/ie8.css" /><![endif]-->
	<!--[if lte IE 7]><link rel="stylesheet" href="css/ie7.css" /><![endif]-->
	
</head>

<!--
		Note: Set the body element's class to "left-sidebar" to position the sidebar on the left.
		Set it to "right-sidebar" to, you guessed it, position it on the right.
	-->
<body class="left-sidebar">

<!-- Session check : user logged in or not/ press back button -->
<jsp:include page="../views/common/checkSession.jsp"></jsp:include>

<%-- <%
	String currentUser = (String) session.getAttribute("currentUser");
	if (null == currentUser) {
	   request.setAttribute("Error", "Session has ended. Please login.");
	   RequestDispatcher rd = request.getRequestDispatcher("../login.jsp");
	   rd.forward(request, response);
	}
%> --%>
<%
	response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
	response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
	response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
	response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

	session.removeAttribute("currentUser");
	session.invalidate();
%>

	<!-- Wrapper -->
	<div id="wrapper">

		<!-- Content -->
		<div id="content">
			<div id="content-inner">

				<!-- Login -->
					<div id="login_content">
						<header>
							<h2>Bye Bye! Have a great time...</h2>
							<span class="byline">Successfully Logged out from Easy Attendance.</span>
						</header>
						<span><a href="<%=request.getContextPath()%>/views/login.jsp">Click here </a>to login.</span>
					</div>
				
			</div>
		</div>

		<!-- Sidebar -->
		<div id="sidebar">

			<!-- Logo -->
			<div id="logo">
				<!-- <h1>Attendance</h1> -->
			</div>
			<h2 style="text-align: center;">Easy Attendance</h2>

			<!-- Text -->
			<section class="is-text-style1">
			<div class="inner">
				<p>"Intelligent way to manage attendance."</p>
			</div>
			</section>

			<!-- Copyright -->
			<div id="copyright">
				<p>
					&copy; 2014 Sysoftni Solutions.<br /> <a
						href="http://www.sysoftni.com" target="_blank">www.sysoftni.com</a>
				</p>
			</div>

		</div>

	</div>
</body>
</html>